package cn.wolfcode.mapper;


import cn.wolfcode.domain.Department;
import cn.wolfcode.qo.QueryObject;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Department department);

    Department selectByPrimaryKey(Long id);

    List<Department> selectAll();

    void updateByPrimaryKey(Department department);

    // 分页查询
//    int selectForCount(QueryObject qo); // 使用后端分页插件
    List<Department> selectForList(QueryObject qo);
}